<?php
namespace app\route;
use think\Route;
use think\Request;

    if (strpos($request->url(),'Api') !== false) {
        Route::rule(config('admin') . '/:ctr/:act' ,'admin/:ctr/:act'); 
    }
	
	